/*
 * Saphre - Suffix Arrays for Phrase Extraction
 * Copyright (C) 2013 
 * Dale Gerdemann - Tübingen, Germany 
 * Niko Schenk - Frankfurt am Main, Germany
 * All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
package util.statistics;

/**
 * An Ngram object represents a single n-gram in a corpus
 * including various (statistical) information, such as its
 * term frequency in the corpus, etc.
 * 
 * @author Niko Schenk
 */
public class Ngram {
    
    private String ngram;
    private int[] intWords;
    private int length;
    private int tf;
    private int df;
    private double miYamamotoChurch;
    private double miGeneral;
    private double ridf;
    private boolean isMax;
    private boolean isSuperMax;
    private double howMax;
    
    public String getNgram() {
        return ngram;
    }
    
    public void setNgram(String anNgram) {
        this.ngram = anNgram;
    }
    
    public int[] getIntWords() {
        return intWords;
    }
    
    public void setIntWords(int[] someIntWords) {
        intWords = new int[someIntWords.length];
        System.arraycopy(someIntWords, 0, intWords, 0, someIntWords.length);
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getTf() {
        return tf;
    }

    public void setTf(int tf) {
        this.tf = tf;
    }

    public int getDf() {
        return df;
    }

    public void setDf(int df) {
        this.df = df;
    }

    public double getMiYamamotoChurch() {
        return miYamamotoChurch;
    }

    public void setMiYamamotoChurch(double miYamamotoChurch) {
        this.miYamamotoChurch = miYamamotoChurch;
    }

    public double getMiGeneral() {
        return miGeneral;
    }

    public void setMiGeneral(double miGeneral) {
        this.miGeneral = miGeneral;
    }

    public double getRidf() {
        return ridf;
    }

    public void setRidf(double ridf) {
        this.ridf = ridf;
    }

    public boolean isIsMax() {
        return isMax;
    }

    public void setIsMax(boolean isMax) {
        this.isMax = isMax;
    }

    public boolean isIsSuperMax() {
        return isSuperMax;
    }

    public void setIsSuperMax(boolean isSuperMax) {
        this.isSuperMax = isSuperMax;
    }

    public double getHowMax() {
        return howMax;
    }

    public void setHowMax(double howMax) {
        this.howMax = howMax;
    }
}
